<?php get_header(); ?>
<!-- content -->
<div class="content"> 
    <div class="container_12">
        <div class="grid_3">
            <?php get_sidebar('left'); ?>            
        </div>
        <!-- item -->
        <div class="grid_9">

            <!-- div slide -->            
            <?php get_template_part('slider'); ?>

            <!-- div items-->
            <div class="content_items" id="pro_phongthinghiem">
                <div class="content_nameproduct">
                    Thiết bị phòng thí nghiệm
                </div>
                <hr>

                <div>
                    <ul>                        
                        <?php
                        $my_query = new WP_Query("cat=3&posts_per_page=6");
                        if ($my_query->have_posts()):
                            while ($my_query->have_posts()):
                                $my_query->the_post();
                                ?>
                                <li class="content_item_wrap">
                                    <div class="content_item">
                                        <a href="<?php the_permalink(); ?>" 
                                           title="<?php printf(esc_attr__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0')); ?>" 
                                           rel="bookmark">                                        
                                               <?php
                                               if (has_post_thumbnail())
                                                       echo the_post_thumbnail(array(194, 194));
                                               else
                                               {
                                                   ?>
                                                <img src="<?php echo bloginfo('template_url'); ?>/img/pro_1.jpg"/>
                                                <?php
                                            }
                                            ?>
                                        </a>
                                    </div>
                                    <p>
                                        <a href="<?php the_permalink(); ?>" 
                                           title="<?php printf(esc_attr__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0')); ?>" 
                                           rel="bookmark">
                                               <?php the_title(); ?>
                                        </a>
                                    </p>                           
                                </li>
                                <?php
                            endwhile;
                        endif;
                        wp_reset_postdata();
                        ?>                  
                    </ul>
                </div>
            </div>

            <div class="content_items" id="pro_moitruong">
                <div class="content_nameproduct">
                    Thiết bị môi trường
                </div>
                <hr>
                <div id="pro2">
                    <ul>
                        <?php
                        $my_query = new WP_Query("cat=4&posts_per_page=3");
                        if ($my_query->have_posts()):
                            while ($my_query->have_posts()):
                                $my_query->the_post();
                                ?>
                                <li class="content_item_wrap">
                                    <div class="content_item">
                                        <a href="<?php the_permalink(); ?>" 
                                           title="<?php printf(esc_attr__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0')); ?>" 
                                           rel="bookmark">                                        
                                               <?php
                                               if (has_post_thumbnail())
                                                       echo the_post_thumbnail(array(194, 194));
                                               else
                                               {
                                                   ?>
                                                <img src="<?php echo bloginfo('template_url'); ?>/img/pro_1.jpg"/>
                                                <?php
                                            }
                                            ?>
                                        </a>
                                    </div>
                                    <p>
                                        <a href="<?php the_permalink(); ?>" 
                                           title="<?php printf(esc_attr__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0')); ?>" 
                                           rel="bookmark">
                                               <?php the_title(); ?>
                                        </a>
                                    </p>                           
                                </li>
                                <?php
                            endwhile;
                        endif;
                        wp_reset_postdata();
                        ?>
                    </ul>
                </div>
            </div>

            <div class="content_items" id="pro_hoachat">
                <div class="content_nameproduct">
                    Hóa chất
                </div>
                <hr>
                <ul>
                    <?php
                    $my_query = new WP_Query("cat=5&posts_per_page=3");
                    if ($my_query->have_posts()):
                        while ($my_query->have_posts()):
                            $my_query->the_post();
                            ?>
                            <li class="content_item_wrap">
                                <div class="content_item">
                                    <a href="<?php the_permalink(); ?>" 
                                       title="<?php printf(esc_attr__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0')); ?>" 
                                       rel="bookmark">                                        
                                           <?php
                                           if (has_post_thumbnail())
                                                   echo the_post_thumbnail(array(194, 194));
                                           else
                                           {
                                               ?>
                                            <img src="<?php echo bloginfo('template_url'); ?>/img/pro_1.jpg"/>
                                            <?php
                                        }
                                        ?>
                                    </a>
                                </div>
                                <p>
                                    <a href="<?php the_permalink(); ?>" 
                                       title="<?php printf(esc_attr__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0')); ?>" 
                                       rel="bookmark">
                                           <?php the_title(); ?>
                                    </a>
                                </p>                           
                            </li>
                            <?php
                        endwhile;
                    endif;
                    wp_reset_postdata();
                    ?>
                </ul>
            </div>
        </div>
        <!-- ote, -->
    </div>
</div>
<!-- end of content -->    
<?php get_footer(); ?>